xen: make available hvm_fep to non-debug build as well
authorWei Liu <wei.liu2@citrix.com>
Thu, 23 Jun 2016 15:10:29 +0000 (16:10 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 23 Jun 2016 16:00:33 +0000 (17:00 +0100)
commita6288d5bb8b970646368afe167a24eeba95e9e03
tree6d668e48008cb20dde32e858f66af665b2956878
parent509019f42dd514bba40ba7ec8663341a5c1efa4c
xen: make available hvm_fep to non-debug build as well

Originally hvm_fep was guarded by NDEBUG, which means it was only
available to debug builds.

However there is value in having it in non-debug builds as well. Users
can use it to run tests in a setup that replicates a production
environment.

Make it clear with a sync_console style warning that this option can't
be used in production setup. Update command line documentation
accordingly. Finally mark Xen as tainted when this feature is used.

Add a kconfig option under x86 to configure hvm_fep.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
docs/misc/xen-command-line.markdown
xen/arch/x86/Kconfig
xen/arch/x86/hvm/hvm.c
xen/common/kernel.c
xen/include/asm-x86/hvm/hvm.h
xen/include/xen/lib.h